package com.jxin.oms;

import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.api.config.annotation.NacosConfigurationProperties;
import com.jxin.db.annotation.EnableMutilDb;
import com.jxin.db.consts.PersistentTypeEnum;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * oms 订单模块启动类
 * @author Jxin
 * @version 1.0
 * @since 2020/1/13 20:01
 */
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableDubbo(scanBasePackages  = "com.jxin.oms.order.interfaces")
@NacosConfigurationProperties(dataId = "jxin-oms-order",
                              properties = @NacosProperties(serverAddr = "127.0.0.1:8848"),
                              groupId = "idc",
                              autoRefreshed = true)
@EnableMutilDb(type = PersistentTypeEnum.MYBATIS)
public class OmsOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OmsOrderApplication.class, args);
    }
}
